import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/Iplist/getList',
    method: 'get',
    params: query
  })
}

//获取分组信息
export function fetchFzList() {
  return request({
    url: '/Fenzu/getList',
    method: 'get'
  })
}

//导入ip组数据
export function createArticle(data) {
  return request({
    url: '/Iplist/getAdd',
    method: 'post',
    data
  })
}
export function updateArticle(data) {
  return request({
    url: '/Iplist/getEdit',
    method: 'post',
    data
  })
}


export function getDel(data) {
  return request({
    url: '/Iplist/getDel',
    method: 'post',
    data
  })
}